import 'package:word_game/engine/core.dart';
import 'task.dart';
import 'task_expecta.dart';

class ThingTaskExpecta extends TaskExpecta {
  @override
  bool expecta(Hero hero, Task task) {
    for (var thing in hero.bag.things) {
      if (thing.code == task.thingCode) {
        return true;
      }
    }
    return false;
  }
}